package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/06/23 14:39
 */
@RestController
public class HelloController {

    @RequestMapping("hello")
    public BaseRespVo hello() {
        System.out.println("hello");
        return BaseRespVo.ok("hello");
    }

    @RequestMapping("goodbye")
    public BaseRespVo goodbye() {

        System.out.println("goodbye");
        return BaseRespVo.ok("goodbye");
    }


}
